package com.jf.mocker.mock;

import com.jf.mocker.anotations.IClassMocker;
import com.jf.mocker.anotations.IMethodMocker;
import com.jf.mocker.anotations.MethodMockType;

/**
 * @Class: MyMocker
 * @Description:
 * @author:s
 * @Date: 2022/9/21
 */
@IClassMocker("com.jf.mocker.MyTestClass")
public class MyMocker {

    @IMethodMocker(name = "getMessage")
    public String replaceGetMessage(){
        System.out.println("replaceGetMessage from MyMocker!");
        return "i had replace getMessage() !!!!";
    }

    @IMethodMocker(name = "setMessage", mockType = MethodMockType.After)
    public void afterSetMessage(){
        System.out.println("afterSetMessage from MyMocker!");
    }

}
